package com.nuanshui.heatedloan.service.cms.security;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.nuanshui.heatedloan.constant.TransactionManagerType;
import com.nuanshui.heatedloan.dao.cms.security.UserRoleVODao;
import com.nuanshui.heatedloan.entity.cms.security.UserRoleVO;
import com.nuanshui.heatedloan.service.cms.BaseService;



/**
 * 用户角色Service
 */
@Service
@Transactional(readOnly = true,value=TransactionManagerType.MANAGER_SERVICE_TRANSACTION_MARGER)
public class ApiUserRoleService extends BaseService<UserRoleVO, Long> {

	@Autowired
	private UserRoleVODao userRoleDao;

	/**
	 * @param userId
	 * @return
	 */
	public List<UserRoleVO> find(final Long userId) {
		return userRoleDao.findByUserId(userId);
	}

}
